Skip to content

Shorten AI transport retry delays#1819

Merged
chubes4 merged 1 commit intomainfrom
fix/ai-transport-retry-delay
May 6, 2026
Merged

Shorten AI transport retry delays#1819
chubes4 merged 1 commit intomainfrom
fix/ai-transport-retry-delay

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 6, 2026

Summary

  • Classify AI retry failures in JobRetryPolicy so transport/connect/DNS/network failures are distinct from provider throttling.
  • Use a 15s base delay for cheap AI transport retries while preserving existing 60s/backoff behavior for 429/rate limits, overloads, and generic retryable AI failures.
  • Record retry_class in retry scheduling logs, retry results, and engine_data retry history.

Fixes #1818.

Testing

  • php tests/job-retry-policy-smoke.php
  • composer run lint -- inc/Core/JobRetryPolicy.php inc/Core/Steps/AI/AIStep.php tests/job-retry-policy-smoke.php

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Adding failure-type-aware retry delays for AI transport/connect timeout failures and updating tests.
    Chris remains responsible for review and merge.

@chubes4 chubes4 merged commit 09cf540 into main May 6, 2026
3 checks passed
@chubes4 chubes4 deleted the fix/ai-transport-retry-delay branch May 6, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use shorter retry delays for AI transport/connect timeouts

1 participant